<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: JCMediaChannelCallback类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_j_c_media_channel_callback-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCMediaChannelCallback类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html">媒体频道模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_j_c_media_channel_callback_8h_source.html">JCMediaChannelCallback.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aab5950490321f2c6bd4d9748106973ee"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#aab5950490321f2c6bd4d9748106973ee">onMediaChannelStateChange</a> (<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a> state, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a> oldState)=0</td></tr>
<tr class="separator:aab5950490321f2c6bd4d9748106973ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ce6d3f4ac16fd55c500f8b4e27f52bb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a8ce6d3f4ac16fd55c500f8b4e27f52bb">onMediaChannelPropertyChange</a> (<a class="el" href="class_j_c_media_channel_prop_change_param.html">JCMediaChannelPropChangeParam</a> propChangeParam)=0</td></tr>
<tr class="separator:a8ce6d3f4ac16fd55c500f8b4e27f52bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a430bd78b28e189ee3c9564ddb7db213d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a430bd78b28e189ee3c9564ddb7db213d">onJoin</a> (bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason, const char *channelId)=0</td></tr>
<tr class="separator:a430bd78b28e189ee3c9564ddb7db213d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18bc4fae89f0d56fb849075f1603ac71"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a18bc4fae89f0d56fb849075f1603ac71">onLeave</a> (<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason, const char *channelId)=0</td></tr>
<tr class="separator:a18bc4fae89f0d56fb849075f1603ac71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61a1d5a81563d34f80e70541a114a74a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a61a1d5a81563d34f80e70541a114a74a">onStop</a> (bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason)=0</td></tr>
<tr class="separator:a61a1d5a81563d34f80e70541a114a74a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a864db3251f12affc38f7c95c7fdccab1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a864db3251f12affc38f7c95c7fdccab1">onQuery</a> (int operationId, bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason, <a class="el" href="class_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a> *queryInfo)=0</td></tr>
<tr class="separator:a864db3251f12affc38f7c95c7fdccab1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf004e70eb654a1afbf0f3f64a76e8b8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#adf004e70eb654a1afbf0f3f64a76e8b8">onParticipantJoin</a> (<a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *participant)=0</td></tr>
<tr class="separator:adf004e70eb654a1afbf0f3f64a76e8b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5888058878f3aaa382b3ede94228a6e8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a5888058878f3aaa382b3ede94228a6e8">onParticipantLeft</a> (<a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *participant)=0</td></tr>
<tr class="separator:a5888058878f3aaa382b3ede94228a6e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cfa3d92848a80daa60ebc74a54c7042"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a6cfa3d92848a80daa60ebc74a54c7042">onParticipantUpdate</a> (<a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *participant, <a class="el" href="class_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant::ChangeParam</a> changeParam)=0</td></tr>
<tr class="separator:a6cfa3d92848a80daa60ebc74a54c7042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f6b72922ebc576d94f55dc153b1209d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a6f6b72922ebc576d94f55dc153b1209d">onMessageReceive</a> (const char *type, const char *content, const char *fromUserId)=0</td></tr>
<tr class="separator:a6f6b72922ebc576d94f55dc153b1209d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25085c8e32313847c986582d45753357"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#a25085c8e32313847c986582d45753357">onInviteSipUserResult</a> (int operationId, bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a> reason)=0</td></tr>
<tr class="separator:a25085c8e32313847c986582d45753357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adea3e7e31e00251081ade1adb2e23f31"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_channel_callback.html#adea3e7e31e00251081ade1adb2e23f31">onParticipantVolumeChange</a> (<a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *participant)=0</td></tr>
<tr class="separator:adea3e7e31e00251081ade1adb2e23f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="class_j_c_media_channel_callback.html">JCMediaChannelCallback</a> 对象，用于回调媒体频道相关事件 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a25085c8e32313847c986582d45753357"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25085c8e32313847c986582d45753357">&#9670;&nbsp;</a></span>onInviteSipUserResult()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onInviteSipUserResult </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>operationId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>邀请Sip用户操作结果回调</p>
<p>成功后会触发 <a class="el" href="class_j_c_media_channel_callback.html#adf004e70eb654a1afbf0f3f64a76e8b8">onParticipantJoin</a> 回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作id，由 <a class="el" href="class_j_c_media_channel.html#acd44cb564943ffde1ec7d5d4168e4191">inviteSipUser</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>邀请用户是否成功<ul>
<li>true：成功</li>
<li>false：失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannel 错误码</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a430bd78b28e189ee3c9564ddb7db213d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a430bd78b28e189ee3c9564ddb7db213d">&#9670;&nbsp;</a></span>onJoin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onJoin </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>channelId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>加入频道结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>加入频道是否成功<ul>
<li>true：成功</li>
<li>false：失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>加入失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannel 错误码</a> </td></tr>
    <tr><td class="paramname">channelId</td><td>频道标识符 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a18bc4fae89f0d56fb849075f1603ac71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18bc4fae89f0d56fb849075f1603ac71">&#9670;&nbsp;</a></span>onLeave()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onLeave </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>channelId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>离开频道结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">reason</td><td>离开原因，参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannel 离开原因</a> </td></tr>
    <tr><td class="paramname">channelId</td><td>频道标识符 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8ce6d3f4ac16fd55c500f8b4e27f52bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ce6d3f4ac16fd55c500f8b4e27f52bb">&#9670;&nbsp;</a></span>onMediaChannelPropertyChange()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onMediaChannelPropertyChange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_prop_change_param.html">JCMediaChannelPropChangeParam</a>&#160;</td>
          <td class="paramname"><em>propChangeParam</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>属性变化回调</p>
<p>目前主要关注屏幕共享状态的更新</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">propChangeParam</td><td><a class="el" href="class_j_c_media_channel_prop_change_param.html">JCMediaChannelPropChangeParam</a> 变化标识集合 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aab5950490321f2c6bd4d9748106973ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab5950490321f2c6bd4d9748106973ee">&#9670;&nbsp;</a></span>onMediaChannelStateChange()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onMediaChannelStateChange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a>&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gaba59b980138d98f12a87fd934cfdd55b">JCMediaChannelState</a>&#160;</td>
          <td class="paramname"><em>oldState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自身状态变化回调</p>
<p>状态：</p><ul>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ggaba59b980138d98f12a87fd934cfdd55baf0f0fdcaf5717374744bc1f24adcd677">JCMediaChannelStateIdle</a> : 空闲状态</li>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ggaba59b980138d98f12a87fd934cfdd55ba8543fa4cbb96d2d36d23d658a302bcdc">JCMediaChannelStateJoining</a> : 加入中</li>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ggaba59b980138d98f12a87fd934cfdd55ba3179806a02aecefd7f3702c278ac8c4c">JCMediaChannelStateJoined</a> : 已加入</li>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ggaba59b980138d98f12a87fd934cfdd55ba17c7c0fdfbb8151ca20e0569be242262">JCMediaChannelStateLeaving</a> : 离开中</li>
</ul>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>当前状态 </td></tr>
    <tr><td class="paramname">oldState</td><td>变化前状态 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6f6b72922ebc576d94f55dc153b1209d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f6b72922ebc576d94f55dc153b1209d">&#9670;&nbsp;</a></span>onMessageReceive()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onMessageReceive </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>content</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fromUserId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>接收频道消息的回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>消息类型，对应 <a class="el" href="class_j_c_media_channel.html#aa67711141ad0883ad8f2dce0ea631b48">sendMessage</a> 方法中的 type 参数 </td></tr>
    <tr><td class="paramname">content</td><td>消息内容，对应 <a class="el" href="class_j_c_media_channel.html#aa67711141ad0883ad8f2dce0ea631b48">sendMessage</a> 方法中的 content 参数 </td></tr>
    <tr><td class="paramname">fromUserId</td><td>消息发送成员的userId </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="adf004e70eb654a1afbf0f3f64a76e8b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf004e70eb654a1afbf0f3f64a76e8b8">&#9670;&nbsp;</a></span>onParticipantJoin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onParticipantJoin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>新成员加入回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 成员对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5888058878f3aaa382b3ede94228a6e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5888058878f3aaa382b3ede94228a6e8">&#9670;&nbsp;</a></span>onParticipantLeft()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onParticipantLeft </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>成员离开回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 成员对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6cfa3d92848a80daa60ebc74a54c7042"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cfa3d92848a80daa60ebc74a54c7042">&#9670;&nbsp;</a></span>onParticipantUpdate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onParticipantUpdate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *&#160;</td>
          <td class="paramname"><em>participant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant::ChangeParam</a>&#160;</td>
          <td class="paramname"><em>changeParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>成员更新回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 成员对象 </td></tr>
    <tr><td class="paramname">changeParam</td><td><a class="el" href="class_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant::ChangeParam</a> 更新标识类 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="adea3e7e31e00251081ade1adb2e23f31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adea3e7e31e00251081ade1adb2e23f31">&#9670;&nbsp;</a></span>onParticipantVolumeChange()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onParticipantVolumeChange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> *&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>成员声音变化</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 变化成员 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a864db3251f12affc38f7c95c7fdccab1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a864db3251f12affc38f7c95c7fdccab1">&#9670;&nbsp;</a></span>onQuery()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onQuery </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>operationId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a> *&#160;</td>
          <td class="paramname"><em>queryInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>查询频道信息结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作id，由 <a class="el" href="class_j_c_media_channel.html#af7ccf465a6ddb05aa4ff22f5f61eab10">query</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>查询频道信息是否成功<ul>
<li>true：查询成功</li>
<li>false：查询失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>查询失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannel 错误码</a> </td></tr>
    <tr><td class="paramname">queryInfo</td><td><a class="el" href="class_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a> 对象，查询到的频道信息，当失败时只需关注 <a class="el" href="class_j_c_media_channel_query_info.html#a35281c2fa4be943a2fe59f67d8a7aa62">getChannelId</a> 获取的 channelId </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a61a1d5a81563d34f80e70541a114a74a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61a1d5a81563d34f80e70541a114a74a">&#9670;&nbsp;</a></span>onStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMediaChannelCallback::onStop </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>解散频道结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>解散频道是否成功<ul>
<li>true：成功</li>
<li>false：失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>解散失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga24a2154e4bb2db63c75b31cd2b021fc3">JCMediaChannel 失败原因</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>SDK/all/include/<a class="el" href="_j_c_media_channel_callback_8h_source.html">JCMediaChannelCallback.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
